<?php
class contact_model extends jqxGrid_CI_Model {

    function __construct()
    {
        parent::__construct();
        
    }
    function get($id)
    {
        $this->db->where(array("ContactID"=>"$id"));
        $query = $this->db->get("dtb_contact");
        return $query->result();
    }
    
    function gettotal_rows(){
        $strQuery="
            SELECT SQL_CALC_FOUND_ROWS * FROM `dtb_contact`
            WHERE true 
            ";
        $this->__new($strQuery);
        return $this->jqxBinding();
    }
    
    
}
?>
